/*
 * Public Credit Information Sharing Platform(PCISP).
 * Copyright (c) 2019-2020 jsxzkingdee and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * Please visit https://www.zhengxinsoft.com if you need additional information or have any questions.
 */

package com.platform.comm.util.crypto;

/**
 * Description: com.platform.comm.crypto
 *
 * @author libin created on 2020/7/28.
 */
public enum ErrorCode {
    /**
     * 错误码
     */
    SM2_DECRYPT_FAILED(1, "SM2解密失败!"),
    SM2_ENCRYPT_FAILED(2, "SM2加密失败!"),
    SM3_HASH_FAILED(3, "SM2加密失败!"),
    SM4_DECRYPT_FAILED(4, "SM4解密失败!"),
    SM4_ENCRYPT_FAILED(5, "SM4加密失败!");

    private int code;
    private String msg;

    ErrorCode(int code, String comment) {
        this.code = code;
        this.msg = comment;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
